<?php

function file_size_format($size) {
	if ($size>1024*1024){
		return  round($size/1024/1024,2)."M";
	}elseif ($size>1024*1024){
		return  round($size/1024/1024/1024,2)."G";
	}else {
		return  round($size/1024,2)."K";
	}
}